package git.bankview.sl.schedule;

import java.sql.Connection;
import java.sql.Statement;

public class SqlBatchBaseContext
{
	Connection ctxConnection = null;
	Statement ctxStatement = null;
	String sql = null;
	int effectRows = 0;
	java.sql.Date[] parameters = null;
	
	public java.sql.Date[] getParameters() {
		return parameters;
	}
	public void setParameters(java.sql.Date[] parameters) {
		this.parameters = parameters;
	}
	public SqlBatchBaseContext(Connection ctxConnection) {
		super();
		this.ctxConnection = ctxConnection;
	}
	public Connection getCtxConnection() {
		return ctxConnection;
	}
	public void setCtxConnection(Connection ctxConnection) {
		this.ctxConnection = ctxConnection;
	}
	public Statement getCtxStatement() {
		return ctxStatement;
	}
	public void setCtxStatement(Statement ctxStatement) {
		this.ctxStatement = ctxStatement;
	}
	public String getSql() {
		return sql;
	}
	public void setSql(String sql) {
		this.sql = sql;
	}
	public int getEffectRows() {
		return effectRows;
	}
	public void setEffectRows(int effectRows) {
		this.effectRows = effectRows;
	}
	public int addEffectRows(int effects) {
		return (this.effectRows += effects);
	}
}
